package com.siyu.tickets.dao;

import java.util.Date;

import com.siyu.common.hibernate3.Updater;
import com.siyu.common.page.Pagination;
import com.siyu.tickets.entity.Ticket;

public interface TicketDao {

	public Pagination getPage(Date beginTime, Date endTime, Boolean valid, int pageNo, int pageSize);

	public Ticket findById(Integer id);

	public Ticket findByCode(String code);

	public Ticket save(Ticket bean);

	public Ticket updateByUpdater(Updater<Ticket> updater);

	public Ticket deleteById(Integer id);

}
